/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.router.facade.order.transfer;

import info.peigen.hotpot.business.router.facade.enums.ChannelCode;
import info.peigen.hotpot.business.router.facade.order.AbstractRouterServiceOrder;
import info.peigen.hotpot.common.core.enums.CountryCode;
import info.peigen.hotpot.common.core.enums.Currency;
import info.peigen.hotpot.common.core.lang.money.Money;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(TransferOrder)</b>
 * 提现/转账
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/4/7
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class TransferOrder extends AbstractRouterServiceOrder {

    /** 交易Id */
    @NotEmpty
    String   tradeId;
    /** 交易币种 */
    @NotNull
    Currency transCurrency;
    /** 付款方户名 */
    String      payerAccountName;
    /** 付款方账号 */
    String      payerAccountNo;
    /** 付款币种 */
    Currency    payerAccountCurrency;
    /** 付款方银行地区码 */
    CountryCode payerBankCountryCode;
    /** 收款方户名 */
    String      payeeAccountName;
    /** 收款方账号 */
    String      payeeAccountNo;
    /** 转账备注 */
    String      memo;
    /** 交易金额 */
    @NotNull
    Money       amount;
    /** 手续费金额 */
    @NotNull
    Money       feeAmount;
    /** 转账渠道 */
    @NotNull
    ChannelCode code;
    /** 银行国际代码 */
    String swiftCode;
    /** 银行卡加密信息 */
    @NotNull
    String cardSecurityId;
    /** 收款银行地址 */
    String address;
}
